<div class="pagination">
    <ul>
        {% if not current_page.solo %}
            {% for page in current_page.page_range %}
                {% if not page %}
                    ...
                {% else %}
                    {% ifequal page current_page.number %}
                        <li><a href="?page={{page}}" class='current_page'>{{page}}</a></li>
                    {% else %}
                        <li><a href="?page={{page}}">{{page}}</a></li>
                    {% endifequal %}
                {% endif %}
            {% endfor %}
            {% if current_page.has_next %}
                <li><a href="?page={{current_page.next_page_number }}">Next</a></li>
            {% endif %}
        {% endif %}
    </ul>
</div>
